<template>
    <el-form :inline="true" :model="formInline" class="demo-form-inline" size="large">
      <el-form-item label="预约试听">
        <el-select v-model="formInline.region" placeholder="是">
          <el-option label="是" value="shanghai" />
          <el-option label="否" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="网上显示">
        <el-select v-model="formInline.region" placeholder="是">
          <el-option label="是" value="shanghai" />
          <el-option label="否" value="beijing" />
        </el-select>
      </el-form-item>
      <br>
      <el-form-item label="插班报名">
        <el-select v-model="formInline.region" placeholder="是">
          <el-option label="是" value="shanghai" />
          <el-option label="否" value="beijing" />
        </el-select>
      </el-form-item>
      <el-form-item label="退班规则">
        <el-select v-model="formInline.region" placeholder="随时退班">
          <el-option label="随时退班" value="shanghai" />
          <el-option label="不能退班" value="beijing" />
        </el-select>
      </el-form-item>
      <br>
      <el-form-item label="预约人数" >
        <el-input v-model="formInline.user"  placeholder="请输入预约人数" />
      </el-form-item>
      <br>
      <el-form-item label="教学目标">
        <el-input v-model="formInline.user" placeholder="请输入教学目标" />
      </el-form-item>
      <br>
      <el-form-item label="课程亮点">
        <el-input v-model="formInline.user" placeholder="请输入教学亮点" />
      </el-form-item>
      <br>
      <el-form-item label="招生简章">
        <editor></editor>
      </el-form-item>
      <br>
      <el-form-item label="班级图片">
        <el-input v-model="formInline.user" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">上传图片</el-button>
      </el-form-item>
      <br>
      <el-form-item label="教学视频">
        <el-input v-model="formInline.user" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">上传视频</el-button>
      </el-form-item>
      <br>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">取消</el-button>
      </el-form-item>
    </el-form>
  </template>
  
  <script setup>
  import { reactive } from 'vue';
  import Editor from '@tinymce/tinymce-vue';
  
  const formInline = reactive({
    user: '',
    region: '',
  })
  
  const onSubmit = () => {
    console.log('submit!')
  }
  </script>